/**
 * 
 */
package kevin.study.zephyr.domain.dao.db4o;

import com.db4o.Db4o;
import com.db4o.ObjectContainer;

/**
 * @author Kevin.Huang
 * @date 2007-9-28
 */
public final class DB4ODBManager {

	private DB4ODBManager() {
		super();
	}

	private ObjectContainer db = Db4o.openFile(DB4OConfig.getDataPath());

	private static final DB4ODBManager SINGLETON = new DB4ODBManager();

	/**
	 * 获取DocumentManager实例
	 * 
	 * @return
	 */
	public static DB4ODBManager getDefault() {
		return SINGLETON;
	}

	public ObjectContainer getDB() {
		return db;
	}

}
